﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="PlugNT.Cms.Web.Admin.Pre_Systems.Pre_Config" Codebehind="Config.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>网站基本信息设置</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/info.css" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        showtab(1);
    });
    function showtab(n) {
        for (i = 1; i < 5; i++) {
            if (i == n) {
                $('#tab' + i).show();
                $('#tdb' + i).attr('class', 'selected');
            }
            else {
                $('#tab' + i).hide();
                $('#tdb' + i).attr('class', '');
            }
        }
    }
</script>
</head>
<body>

<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>设置&nbsp;&gt;&nbsp;网站配置&nbsp;&gt;&nbsp;基本设置</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>
    
    
<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">

        <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff" style="clear:both;">
            <tr>
               <td colspan="2">
               <div id="tabs">
                <ul class="tab cl">
                   <li>
                    <span  id="tdb1" onclick="javascript:showtab('1');" class="selected">基本配置</span> 
                    </li>
                   <li>
                    <span id="tdb2" onclick="javascript:showtab('2');">功能配置</span> 
                   </li>
                   <li>
                    <span  id="tdb3" onclick="javascript:showtab('3');">上传配置</span> 
                   </li>
                   <li>
                    <span  id="tdb4" onclick="javascript:showtab('4');">邮件配置</span> 
                   </li>
                </ul>     
                </div>  
               </td>
            </tr>
        </table>

        <table id="tab1" width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            

            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">网站名称:</td>
                <td width="1040" bgcolor="#F4FBFF"><asp:TextBox CssClass="input" ID="TextBox_web_name" runat="server" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="网站名称不能为空" ControlToValidate="TextBox_web_name"></asp:RequiredFieldValidator>                                  </td>
            </tr>

            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">网站地址:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox CssClass="input" ID="TextBox_web_url" runat="server" Width="300"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ErrorMessage="网站地址不能为空" ControlToValidate="TextBox_web_url"></asp:RequiredFieldValidator>                                  </td>
            </tr>

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">Logo图片路径:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_logo_path" runat="server" CssClass="input" Width="300"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="首页模板路径不能为空" ControlToValidate="TextBox_logo_path"></asp:RequiredFieldValidator></td>
            </tr>   


            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">首页标题:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_title" runat="server" CssClass="input" Width="300"></asp:TextBox>
                </td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">页面关健词:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_keywords" runat="server" CssClass="input" Width="450"></asp:TextBox>
                </td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">页面描述:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_description" runat="server" CssClass="input" TextMode="MultiLine" Width="450" Height="50"></asp:TextBox>
                </td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">网站备案号:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_recordnumber" runat="server" CssClass="input" Width="200"></asp:TextBox>
                </td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">统计代码:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_totalcode" runat="server" CssClass="input" TextMode="MultiLine" Width="450" Height="50"></asp:TextBox>支持HTML格式
                </td>
            </tr> 

            <tr>
                <td bgcolor="#F4FBFF">&nbsp;</td>
                <td bgcolor="#F4FBFF">
                    <asp:ImageButton ID="imgBasic"  runat="server" ImageUrl="../images/edit-bt.gif" onclick="imgBasic_Click"/>
                </td>
            </tr>
            
        </table>

        <table id="tab2" width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
       

            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">后台管理目录:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox CssClass="input" ID="TextBox_admin_path" runat="server" Width="200"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                        ErrorMessage="网站地址不能为空" ControlToValidate="TextBox_admin_path"></asp:RequiredFieldValidator>                                  </td>
            </tr>
            
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">生成首页路径:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_index_path" runat="server" CssClass="input" Width="300"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ErrorMessage="生成首页路径不能为空" ControlToValidate="TextBox_index_path"></asp:RequiredFieldValidator></td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">内容接口密码:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_admininterfacekey" runat="server" CssClass="input" Width="300"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                        ErrorMessage="后台接口密码不能为空" ControlToValidate="TextBox_admininterfacekey"></asp:RequiredFieldValidator></td>
            </tr> 

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">模板特征字符:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_trait" runat="server" CssClass="input" Width="200"></asp:TextBox>
                多个字符用“,”隔开
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ErrorMessage="特征字符不能为空" ControlToValidate="TextBox_trait"></asp:RequiredFieldValidator></td>
            </tr>  

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">最大内存(MB):</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_memorysize" runat="server" CssClass="input" Width="100"></asp:TextBox>
                小于等于0时不限定
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server"  ErrorMessage="限定最大内存不能为空" ControlToValidate="TextBox_water_path"></asp:RequiredFieldValidator></td>
            </tr>  
            
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">Url重写设置:</td>
                <td bgcolor="#F4FBFF">
                <asp:RadioButtonList ID="rblRewrite" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="0">禁用重写 </asp:ListItem>
                    <asp:ListItem Value="1">启用重写 </asp:ListItem>
                </asp:RadioButtonList>
                &nbsp;&nbsp;&nbsp;(配置文件路径:~/App_Data/reurl.config)
                </td>
            </tr> 
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">网站状态:</td>
                <td bgcolor="#F4FBFF">        
                <asp:RadioButtonList ID="rblState" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="AdminReadonly">后台只读 </asp:ListItem>
                    <asp:ListItem Value="SiteColse">站点关闭 </asp:ListItem>
                    <asp:ListItem Value="SiteOpen">站点启用 </asp:ListItem>
                </asp:RadioButtonList>
                </td>
            </tr>  
            <tr id="tr_siteclosecause" style="display:none">
                <td align="right" nowrap bgcolor="#F4FBFF">站点关闭原因:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_siteclosecause" runat="server" TextMode="MultiLine" CssClass="input" Width="350" Height="50"></asp:TextBox>
            </tr>  

            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">自动更新设置:</td>
                <td width="1040" bgcolor="#F4FBFF">
                <asp:CheckBox ID="chbIsUpdate" runat="server" Text="启用更新" />
                &nbsp;&nbsp;&nbsp;(更新内容为所有聚合页和列表页)
                </td>
            </tr>
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">自动更新时间:</td>
                <td width="1040" bgcolor="#F4FBFF">
                <asp:DropDownList ID="dllDate" runat="server"></asp:DropDownList>
                <asp:DropDownList ID="dllHour" runat="server"></asp:DropDownList>
                <asp:DropDownList ID="dllMinute" runat="server"></asp:DropDownList>
                <asp:DropDownList ID="dllSecond" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">自动更新信息:</td>
                <td width="1040" bgcolor="#F4FBFF">
                <asp:Literal ID="litUpdatestr" runat="server"></asp:Literal>
                </td>
            </tr>




            <tr>
                <td bgcolor="#F4FBFF">&nbsp;</td>
                <td bgcolor="#F4FBFF">
                    <asp:ImageButton ID="imgFunction"  runat="server" ImageUrl="../images/edit-bt.gif" onclick="imgFunction_Click"/>
                </td>
            </tr>

        </table>
          
        <table id="tab3" width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">附件文件目录:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_uploadfile_path" runat="server" CssClass="input" Width="200"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                        ErrorMessage="附件文件路径不能为空" ControlToValidate="TextBox_uploadfile_path"></asp:RequiredFieldValidator></td>
            </tr>  
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">附件允许类型:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_uploadfile_type" runat="server" CssClass="input" Width="300"></asp:TextBox>
                (多个用','分开如：gif,jpg,rar)
                <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                        ErrorMessage="允许附件类型不能为空" ControlToValidate="TextBox_uploadfile_type"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">附件允许大小:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_uploadfile_size" runat="server" CssClass="input" Width="100"></asp:TextBox>
                (数字，单位kb)
                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                        ErrorMessage="允许附件大小不能为空" ControlToValidate="TextBox_uploadfile_size"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">图片上传目录:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_uploadimg_path" runat="server" CssClass="input" Width="200"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="图片上传目录不能为空" ControlToValidate="TextBox_uploadimg_path"></asp:RequiredFieldValidator></td>
            </tr>

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">水印图片路径:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_water_path" runat="server" CssClass="input" Width="300"></asp:TextBox>
                绝对路径
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="首页模板路径不能为空" ControlToValidate="TextBox_water_path"></asp:RequiredFieldValidator></td>
            </tr>  

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">水印文字内容:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_water_txt" runat="server" CssClass="input" Width="200"></asp:TextBox>
                </td>
            </tr>  

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">开启水印类型:</td>
                <td bgcolor="#F4FBFF">        
                <!-- <asp:ListItem Value="0">关闭水印 </asp:ListItem> //-->
                <asp:RadioButtonList ID="rblWatermarkType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">文字水印 </asp:ListItem>
                    <asp:ListItem Value="2">图片水印 </asp:ListItem>
                </asp:RadioButtonList>
                </td>
            </tr>  

            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">图片水印位置:</td>
                <td bgcolor="#F4FBFF">
                <asp:RadioButtonList ID="rblWatermarkStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="1">左上 </asp:ListItem>
                    <asp:ListItem Value="2">中上 </asp:ListItem>
                    <asp:ListItem Value="3">右上 </asp:ListItem>
                    <asp:ListItem Value="4">左中 </asp:ListItem>
                    <asp:ListItem Value="5">居中 </asp:ListItem>
                    <asp:ListItem Value="6">右中 </asp:ListItem>
                    <asp:ListItem Value="7">左下 </asp:ListItem>
                    <asp:ListItem Value="8">中下 </asp:ListItem>
                    <asp:ListItem Value="9">右下 </asp:ListItem>
                </asp:RadioButtonList>
                </td>
            </tr>  


            <tr>
                <td bgcolor="#F4FBFF">&nbsp;</td>
                <td bgcolor="#F4FBFF">
                    <asp:ImageButton ID="imgAttachment"  runat="server" ImageUrl="../images/edit-bt.gif" onclick="imgAttachment_Click"/>
                </td>
            </tr>
        </table>

        <table id="tab4" width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">邮件服务器地址:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_emails_serviceaddress" runat="server" CssClass="input" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                        ErrorMessage="邮件服务器地址不能为空" ControlToValidate="TextBox_emails_serviceaddress"></asp:RequiredFieldValidator></td>
            </tr>  
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">邮件服务器端口:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_emails_serviceport" runat="server" CssClass="input" Width="100"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                        ErrorMessage="邮件服务器端口不能为空" ControlToValidate="TextBox_emails_serviceport"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                <td width="145" align="right" nowrap bgcolor="#F4FBFF">发件人地址:</td>
                <td bgcolor="#F4FBFF">
                <asp:TextBox ID="TextBox_emails_backaddress" runat="server" CssClass="input" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                        ErrorMessage="发件人地址不能为空" ControlToValidate="TextBox_emails_backaddress"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">发件人昵称:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_emails_nickname" runat="server" CssClass="input" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                        ErrorMessage="发件人昵称不能为空" ControlToValidate="TextBox_emails_nickname"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">邮箱账号:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_emails_account" runat="server" CssClass="input" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                        ErrorMessage="邮箱账号不能为空" ControlToValidate="TextBox_emails_account"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">邮箱密码:</td>
                <td bgcolor="#F4FBFF"><asp:TextBox ID="TextBox_emails_password" runat="server" CssClass="input" Width="200"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                        ErrorMessage="邮箱密码不能为空" ControlToValidate="TextBox_emails_password"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="right" nowrap bgcolor="#F4FBFF">SSL连接:</td>
                <td bgcolor="#F4FBFF">
                    <asp:RadioButtonList ID="rbl_emails_enablessl" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="0" Selected="True">明文 </asp:ListItem>
                        <asp:ListItem Value="1">加密 </asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>


            <tr>
                <td bgcolor="#F4FBFF">&nbsp;</td>
                <td bgcolor="#F4FBFF">
                    <asp:ImageButton ID="imgEmailConfig"  runat="server" ImageUrl="../images/edit-bt.gif" onclick="imgEmailConfig_Click"/>
                </td>
            </tr>
        </table>

</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>
